package request

type AlibabaServicecenterWorkcardRelatedskuQueryRequest struct {
	/*
	   工单id     */
	WorkcardId *int64 `json:"workcard_id" required:"true" `
	/*
	   是否根据类目过滤维修项 defalutValue��false    */
	IsFilterByCategory *bool `json:"is_filter_by_category,omitempty" required:"false" `
	/*
	   真实履约服务商nick(非erp系统不要填写)     */
	RealTpNick *string `json:"real_tp_nick,omitempty" required:"false" `
}

func (s *AlibabaServicecenterWorkcardRelatedskuQueryRequest) SetWorkcardId(v int64) *AlibabaServicecenterWorkcardRelatedskuQueryRequest {
	s.WorkcardId = &v
	return s
}
func (s *AlibabaServicecenterWorkcardRelatedskuQueryRequest) SetIsFilterByCategory(v bool) *AlibabaServicecenterWorkcardRelatedskuQueryRequest {
	s.IsFilterByCategory = &v
	return s
}
func (s *AlibabaServicecenterWorkcardRelatedskuQueryRequest) SetRealTpNick(v string) *AlibabaServicecenterWorkcardRelatedskuQueryRequest {
	s.RealTpNick = &v
	return s
}

func (req *AlibabaServicecenterWorkcardRelatedskuQueryRequest) ToMap() map[string]interface{} {
	paramMap := make(map[string]interface{})
	if req.WorkcardId != nil {
		paramMap["workcard_id"] = *req.WorkcardId
	}
	if req.IsFilterByCategory != nil {
		paramMap["is_filter_by_category"] = *req.IsFilterByCategory
	}
	if req.RealTpNick != nil {
		paramMap["real_tp_nick"] = *req.RealTpNick
	}
	return paramMap
}

func (req *AlibabaServicecenterWorkcardRelatedskuQueryRequest) ToFileMap() map[string]interface{} {
	fileMap := make(map[string]interface{})
	return fileMap
}
